import { AudioClip } from "cc";
import { _decorator, CCString, Prefab, SpriteFrame } from "cc";

const { ccclass, property } = _decorator;

export namespace ResourceConst {

    @ccclass('TextureData')
    export class TextureData {
        @property(CCString)
        public key: string = "";

        @property(SpriteFrame)
        public spriteFrame: SpriteFrame = null;
    };

    @ccclass("PrefabData")
    export class PrefabData {
        @property(CCString)
        public key: string = "";

        @property(Prefab)
        public prefab: Prefab = null;
    };

    @ccclass("AudioData")
    export class AudioData {
        @property(CCString)
        public key: string = "";

        @property(AudioClip)
        public audioClip: AudioClip = null;
    };
}